// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
console.log(12345)

// Vue.prototype.$CryptoJS = CryptoJS

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
import * as Pinia from 'pinia';
// #ifndef MP-WEIXIN
import setDirectives from "@/directive/index.js"
// #endif


export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia());
	// #ifndef MP-WEIXIN
	app.use(setDirectives)
	// #endif

	// 定义全局变量
	app.config.globalProperties.base_static = 'http://api.9lele.com/public'
	return {
		app,
		Pinia
	}
}
// #endif